//
//  CommentListRequest.m
//  HONGQIYUN
//
//  Created by 余海华 on 2016/12/23.
//  Copyright © 2016年 Haidi. All rights reserved.
//

#import "CommentListRequest.h"

@implementation CommentListRequest {
    
    NSString *_article_id;
    NSString *_page;
    NSString *_pageSize;
    
}
-(id) initRequestWithArticlId:(NSString *) article_id andPage:(NSString *) page andPageSize:(NSString*) pageSize {
    
    
    if (self = [super init]) {
        
        _article_id = article_id;
        _page = page;
        _pageSize = pageSize;
    }
    return self;
}

-(YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

-(NSString *)requestUrl
{
    return @"/tools/getdata.ashx?types=get_comment_list";
}

-(id)requestArgument
{
    return @{
             @"article_id": [_article_id length]?_article_id:@"",
              @"page": [_page length]?_page:@"",
              @"pagesize": [_pageSize length]?_pageSize:@""
             };
}
@end
